import com.autonavi.yunda.yunji.core.engine.argresolver.ParamResolver
import com.autonavi.yunda.yunji.core.utils.DynamicConfigUtil
import org.slf4j.Logger
import org.slf4j.LoggerFactory

class Script_1691395218087_70895366 {
    Logger log = LoggerFactory.getLogger("Script_1691395218087_70895366")

    def __context
    def aaa
    def location
    def uid
    def id
    def type
    def Content$Type
    def regeo
    def weather
    def query_order
    def sql_trans
    def groovy_fun
    def testpost
    def selectMap
    def charge_cnt

    def __paramValidate() {
    }

    def regeo() {
        [
                "key": ParamResolver.getParamValueByType(DynamicConfigUtil.getString( """24b3d769221d4a008215979791960386""", """restapi.key"""), """string"""),
                "location": location,
                "host": ParamResolver.getParamValueByType(DynamicConfigUtil.getString( """24b3d769221d4a008215979791960386""", """restapi.host"""), """string"""),
        ]
    }

    def weather() {
        [
                "key": ParamResolver.getParamValueByType(DynamicConfigUtil.getString( """24b3d769221d4a008215979791960386""", """restapi.key"""), """string"""),
                "city": regeo.regeocode.addressComponent.adcode,
        ]
    }

    def query_order() {
        [
                "uid": uid,
                "id": id,
        ]
    }

    def sql_trans() {
        [
                "query_order": query_order,
        ]
    }

    def groovy_fun() {
        [
                :
        ]
    }

    def js_fun() {
        [
                :
        ]
    }

    def testpost() {
        [
                "aaa": aaa,
                "ccc": ParamResolver.getParamValueByType(  """dddd""", """string"""),
                "Content_Type": Content$Type,
                "location": location,
                "key": ParamResolver.getParamValueByType(DynamicConfigUtil.getString( """24b3d769221d4a008215979791960386""", """restapi.key"""), """string"""),
        ]
    }

    def selectMap() {
        [
                :
        ]
    }

    def charge_cnt() {
        [
                "dataApiO": ParamResolver.getParamValueByType(  """[{"uv":187348,"hour":-1,"hascar_dist":"0\\u0003138381\\u00021\\u000350269\\u0002-1\\u00030","wkd_drive_dist":"1\\u000324572\\u00022\\u00035556\\u0002-1\\u0003159730","high_hotel_dist":"1\\u000355731\\u0002-1\\u0003132958"}]""", """object"""),
                "request": ParamResolver.getParamValueByType(  """{"profile":"offline_brand_dist,wkd_drive_dist,pmnt_city_dist,comptype_dist,hascar_dist,high_hotel_dist,pmnt_prov_dist"}""", """object"""),
                "chargeCntRule": ParamResolver.getParamValueByType(  """{"input":{"params":{"key":"profile2","function":"notNull_0"}},"output":{"params":{"key":"ds","function":"profileChargeCnt"}},"cal":{"operation":"max"}}""", """string"""),
        ]
    }

    def switcher_start_groovy_fun() {
        [
                "type": type,
                "regeo": regeo,
        ]
    }

    def __output() {
        [
                """aaa""": aaa,
                """weather""": weather,
                """query_order""": sql_trans,
                """groovy_fun""": groovy_fun,
                """testpost""": testpost,
                """selectMap""": selectMap,
                """charge_cnt""": charge_cnt,
        ]
    }

    def __response(__success, __code, __message, __traceId, __data) {
        [
                "success":__success,
                "code":__code,
                "message":__message,
                "traceId":__traceId,
                "data":__data
        ]
    }

    def __traceLog() {
        [
                """userInfo""": uid,
                """chargeCnt""": charge_cnt,
                """customInfo""": id,
        ]
    }

}